package lhdx9;

public class Detection {
    private String phone;
    private String site;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public Detection(String phone, String site) {
        this.phone = phone;
        this.site = site;
    }
    public void jianCe(Automobile a){
        System.out.println("车辆检测中心的电话是："+phone+"，地址在："+site);
        a.print();
    }
}
